import ajax from '@/api/apiConfig.js'

/*头部统计*/
export const getNoticeCount = (data) => {
  return ajax.get('notice/getNoticeCount', data)
}

/*列表*/
export const getNoticeList = (data) => {
  return ajax.get('notice/getNoticeList', data)
}

/*新增公告*/
export const saveNotice = (data) => {
  return ajax.post('notice/saveNotice', data)
}

/*结束公告*/
export const closeNoticeById = (data) => {
  return ajax.get('notice/closeNoticeById', data)
}